package com.cuicui.mall.entity;

import java.io.Serializable;
import java.util.Date;

public class LogData implements Serializable {
    private Integer id;

    private Date createTime;

    private String content;

    private String ip;

    private String userAgent;

    private String requestedUrl;

    private String userName;

    private String methods;

    private String statusCode;

    private static final long serialVersionUID = 1L;

    public LogData(Integer id, Date createTime, String content, String ip, String userAgent, String requestedUrl, String userName, String methods, String statusCode) {
        this.id = id;
        this.createTime = createTime;
        this.content = content;
        this.ip = ip;
        this.userAgent = userAgent;
        this.requestedUrl = requestedUrl;
        this.userName = userName;
        this.methods = methods;
        this.statusCode = statusCode;
    }

    public LogData() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent == null ? null : userAgent.trim();
    }

    public String getRequestedUrl() {
        return requestedUrl;
    }

    public void setRequestedUrl(String requestedUrl) {
        this.requestedUrl = requestedUrl == null ? null : requestedUrl.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getMethods() {
        return methods;
    }

    public void setMethods(String methods) {
        this.methods = methods == null ? null : methods.trim();
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode == null ? null : statusCode.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", createTime=").append(createTime);
        sb.append(", content=").append(content);
        sb.append(", ip=").append(ip);
        sb.append(", userAgent=").append(userAgent);
        sb.append(", requestedUrl=").append(requestedUrl);
        sb.append(", userName=").append(userName);
        sb.append(", methods=").append(methods);
        sb.append(", statusCode=").append(statusCode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}